<h1>Uploads List</h1>

<table class='sortable' id='sortable'>
  <thead>
    <tr>
      <th>Id</th>
      <th>Name</th>
      <th>File type</th>
      <th>File name</th>
      <th>File url</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($uploads_list as $uploads): ?>
    <tr>
      <td><a href="<?php echo url_for('uploads/show?id='.$uploads['id']) ?>"><?php echo $uploads->getid() ?></a></td>
      <td><?php echo $uploads->getname() ?></td>
      <td><?php echo $uploads->getfile_type() ?></td>
      <td><?php echo $uploads->getfile_name() ?></td>
      <td><?php echo $uploads->getfile_url() ?></td>
      <td><?php echo $uploads->getcreated_at() ?></td>
      <td><?php echo $uploads->getupdated_at() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('uploads/new') ?>">New</a>
